import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
    {
        path: "/",
        name: "Layout",
        redirect: "/account",
        component: () => import("../components/layout.vue"),
        children: [
            {
                path: "/404",
                name: "404",
                component: () => import("../pages/common/404.vue"),
            },
            {
                path: "/shop/activity",
                component: () => import("../pages/shop/activity.vue")
            },
            {
                path: "/shop/shopCreateActivity",
                component: () => import("../pages/shop/shopCreateActivity.vue")
            },
            {
                path: "/order/userclassorder",
                component: () => import("../pages/order/userclassorder.vue")
            },
            {
                path: "/shop/userCuppon",
                component: () => import("../pages/shop/userCuppon.vue")
            },
            {
                path: "/shop/cupponCode",
                component: () => import("../pages/shop/cupponCode.vue")
            },
            {
                path: "/shop/userWithDraw",
                component: () => import("../pages/shop/userWithDraw.vue")
            },

            {
                path: "/shop/shopSwiper",
                component: () => import("../pages/shop/shopSwiper.vue"),
            },
            {
                path: "/shop/shopCreateSwiper",
                component: () => import("../pages/shop/shopCreateSwiper.vue"),
            },
            
            {
                path: "/shop/create_course",
                component: () => import("../pages/shop/create_course.vue"),
            },
            
            {
                path: "/account",
                name: "account",
                component: () => import("../pages/account.vue"),

            },
            {
                path: "/setting/logo",
                name: "logo",
                component: () => import("../pages/setting/logo.vue"),
            },
            {
                path: "/shop/create_course",
                component: () => import("../pages/shop/create_course.vue"),
            },
            {
                path: "/shop/typelist",
                component: () => import("../pages/shop/typelist.vue"),
            },
            {
                path: "/shop/blindBox",
                component: () => import("../pages/shop/blindBox.vue"),
            },
            {
                path: "/shop/blindBoxtwo",
                component: () => import("../pages/shop/blindBoxtwo.vue"),
            },
            {
                path: "/shop/one",
                component: () => import("../pages/shop/one.vue"),
            },
            {
                path: "/shop/onetwo",
                component: () => import("../pages/shop/onetwo.vue"),
            },
            {
                path: "/shop/goods",
                name: "goods",
                component: () => import("../pages/shop/goods.vue"),
            },
            {
                path: "/shop/cuppon",
                name: "cuppon",
                component: () => import("../pages/shop/cuppon.vue"),
            },
            {
                path: "/shop/active",
                name: "active",
                component: () => import("../pages/shop/active.vue"),
            },
            {
                path: "/payRecord",
                name: "payRecord",
                component: () => import("../pages/payRecord.vue"),
            },
            {
                path: "/pingjia",
                name: "pingjia",
                component: () => import("../pages/pingjia.vue"),
            },
            {
                path: "/order/goodorder",
                name: "goodorder",
                component: () => import("../pages/order/goodorder.vue"),
            },
            {
                path: "/charge",
                name: "charge",
                component: () => import("../pages/charge.vue"),
            },
            {
                path: "/order/classorder",
                name: "classorder",
                component: () => import("../pages/order/classorder.vue"),
            },
            {
                path: "/setting/disclaimer",
                name: "disclaimer",
                component: () => import("../pages/setting/disclaimer.vue"),
            },
            {
                path: "/member",
                name: "member",
                component: () => import("../pages/member.vue"),
            },
            {
                path: "/shop/manghetype",
                name: "manghetype",
                component: () => import("../pages/shop/manghetype.vue"),
            },
            {
                path: "/shop/onetype",
                name: "onetype",
                component: () => import("../pages/shop/onetype.vue"),
            },
            
            
            
           
        ],
    },
    {
        path: "/login",
        name: "Login",
        component: () => import("../pages/common/Login.vue"),
    },
];

const router = new VueRouter({
    routes,
});



export default router;
